using OnePiece.Ui.Controls.UI;

namespace OnePiece.Ui.Controls
{
    /// <summary>
    /// Class used by the HTML helpers to build HTML tags for message box.
    /// </summary>
    public class GridNavigatorBuilder : ViewComponentBuilderBase<GridNavigator, GridNavigatorBuilder>, IHideObjectMembers
    {
        public GridNavigatorBuilder(GridNavigator component) : base(component)
        {
        }


        public virtual GridNavigatorBuilder ShowAdd(bool value)
        {
            Component.ShowAdd = value;
            return this;
        }
        public virtual GridNavigatorBuilder ShowDelete(bool value)
        {
            Component.ShowDelete = value;
            return this;
        }
        public virtual GridNavigatorBuilder ShowEdit(bool value)
        {
            Component.ShowEdit = value;
            return this;
        }
        public virtual GridNavigatorBuilder ShowRefresh(bool value)
        {
            Component.ShowRefresh = value;
            return this;
        }
        public virtual GridNavigatorBuilder ShowSearch(bool value)
        {
            Component.ShowSearch = value;
            return this;
        }
        public virtual GridNavigatorBuilder ShowViewDetail(bool value)
        {
            Component.ShowViewDetail = value;
            return this;
        }
        //public virtual GridNavigatorBuilder CloseOnEscape(bool value)
        //{
        //    Component.CloseOnEscape = value;
        //    return this;
        //}
        public virtual GridNavigatorBuilder IsMultipleSearch(bool value)
        {
            Component.IsMultipleSearch = value;
            return this;
        }



        /// <summary>
        /// Specify the name of the theme apply to the message box.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <returns></returns>
        public virtual GridNavigatorBuilder Theme(string name)
        {
            Component.Theme = name;

            return this;
        }
    }
}